using System;
using System.Collections.Generic;
using System.Linq;
using SuCasa.Controllers;
using SuCasa.Infrastructure;
using SuCasa.Models;

namespace SuCasa.DataAccess{
    public class FakeCourseRepository : ICourseRepository {
        public bool AddCourse(Course course){
            FakeDb.AllCourses.ToList().Add(course);
            return true;
        }

        public List<Course> GetAll(){
            return FakeDb.AllCourses.ToList();
        }

        public Course GetCourseBy(Func<Course, bool> func){
            return FakeDb.AllCourses.First();
        }

        public CourseDisplayViewModel GetCourseSessions(Course course){
            return new CourseDisplayViewModel { Course = FakeDb.AllCourses.First() };
        }

        public void RemoveStudentFromCourse(int courseId, int id){
            
        }
    }
}